An Experimental Study to Compare the Use of Metamorphic Testing and Assertion
نویسنده
چکیده
(Department of Computer Science, The University of Hong Kong, Pokfulam, Hong Kong) (Department of Computer Science, City University of Hong Kong, Tat Chee Avenue, Hong Kong) (Department of Computer Science, The University of Hong Kong, Pokfulam, Hong Kong) (China Merchants Bank, Central, Hong Kong) + Corresponding author: Phone: +852 2788 9684, Fax: +852 2788 8614, E-mail: [email protected], http://www.cs.cityu.edu.hk/~wkchan/ Abstract: A test oracle in software testing is a mechanism for checking whether the program under test behaves correctly for any execution. In some practical situations, oracles can be unavailable or too expensive to apply. Metamorphic testing (MT) was proposed to alleviate this problem so that software can be delivered under the time-to-market pressure. However, the effectiveness of MT has not been studied adequately. This paper conducts a controlled experiment to investigate the cost effectiveness of using MT. The fault detection capability and time cost of MT are compared with the standard assertion checking method. Our results show that MT has potentials to detect more faults than the assertion checking method. The experiment results also show a trade-off between the two testing methods: MT can be less efficient but more effective, and can be defined at a coarser level of granularity than the assertion checking method.
منابع مشابه
Effect of Assertiveness Training on Self-Efficacy and Differentiation in About to Marry Girls Sponsored by the State Welfare Organization of Iran, Shush City
Introduction: A successful society depends on coherent and successful families and it comes true when the choice of couples is made on knowledge. Marriage is a complex and delicate relationship between two human beings that plays an essential role in achieving the emotional, psychological, and physical needs of men and women; Therefore, the present study was to investigate the effectiveness of ...
متن کاملA Cost-driven Approach for Metamorphic Testing
Metamorphic testing has been applied in various systems from different domains. Many studies showed that the selection of metamorphic relations greatly affected the effectiveness of metamorphic testing. However, these studies mainly focused on the fault-detection effectiveness. They did not consider the cost that metamorphic relations involved, such as the number of test inputs. Good metamorphi...
متن کاملExamining the mediation of self-assertion in the relationship between family function and addiction tendency an example of high school students
Purpose: The purpose of this study was to examine the mediation of self-assertion in the relationship between family function and addiction tendency in a sample of second grade high school students in Sanandaj. Method: The present study is a descriptive and path analysis method. Based on the knowledge of secondary school boy students in Sanandaj and based on the Cochran formula, 366 students we...
متن کاملBiotite and Hornblende Composition Used to Investigate the Nature and Thermobarometry of Pichagchi Pluton, Northwest Sanandaj-Sirjan Metamorphic Belt, Iran
Pichagchi pluton is situated in the northeastern part of the Soursat complex in Sanandaj-Sirjan metamorphic belt of Iran. The pluton with the age of 74.20 Ma is composed mainly granodiorite, diorite, and tonalite in which mafic minerals are biotite and amphibole. In this study, composition of minerals used to describe the nature of the granitic magma and estimate the pressure and temperature at...
متن کاملTHE P REPARATION AND EVALUATION OF REFERENCE LEISHMANIN FROM LEISHMANIA MAJOR FOR USE IN MAN FOR DIAGNOS TIC AND EXPERIMENTAL PURPOSES
Cell-mediated immunity (CMI) plays an important role in resistance against leishmaniasis. Delayed-type hypersensitivity (DTH) reaction measured by skin testing is a practical method of evaluation of CMI and is used as an aid to diagnosis and for epidemiological assessment of exposure to leishmanial infection. Skin testing in leishmaniasis, generally known as Montenegro or leishmanin test, r...
متن کامل